package com.example.auth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.auth.entity.User;
import com.example.auth.response.Result;
import com.example.auth.service.UserService;
import com.example.auth.mapper.UserMapper;
import com.example.auth.util.LoginUserUtils;
import jakarta.annotation.Resource;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

/**
* @author 13057
* @description 针对表【user】的数据库操作Service实现
* @createDate 2024-07-03 16:04:07
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Lazy
    @Resource
    LoginUserUtils loginUserUtils;
    @Override
    public Result userInfo() {
        return Result.OK(loginUserUtils.userEntity());
    }
}




